package net.zarubsys.unianalyzer.dataviews.lpt.gui.graph.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import net.zarubsys.unianalyzer.dataviews.lpt.gui.graph.utils.GraphEditorPlugin;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = GraphEditorPlugin.getDefault().getPreferenceStore();
		store.setDefault(PreferenceConstants.DEFAULT_SAMPLES_PER_PAGE, 100);
		store.setDefault(PreferenceConstants.DEFAULT_TIME_STYLE, 1000);
		store.setDefault(PreferenceConstants.DEFAULT_VALUE_STYLE, 2);
		store.setDefault(PreferenceConstants.JUMP_SIZE, 10);
		store.setDefault(PreferenceConstants.MIN_ZOOM, 10);
		store.setDefault(PreferenceConstants.MAX_ZOOM, 300);
	}

}
